package com.ukao.cashregister.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import com.ukao.cashregister.R;
import com.ukao.cashregister.bean.ClothingFactoryBean;
import com.ukao.cashregister.widget.FlowLayout;
import com.ukao.cashregister.widget.TagAdapter;

import java.util.List;

/**
 * Created by ukaodev on 2017/6/14.
 */

public class ClothingFactortAdapter extends TagAdapter<ClothingFactoryBean> {

     private   Context  mContext;

    public ClothingFactortAdapter(Context  mContext, List<ClothingFactoryBean> datas) {
        super(datas);
        this.mContext=mContext;
    }


    @Override
    public View getView(FlowLayout parent, int position, ClothingFactoryBean item) {

        TextView mTextView=(TextView)LayoutInflater.from(mContext).inflate(R.layout.base_button_tag,
                parent, false);
        mTextView.setText(item.getName());
        return mTextView;
    }
}
